package cmdimpl

import (
	"lnzw/engine/args"
	"lnzw/engine/work"
	"lnzw/server/logic/cmd"
)

type WorkMgrInfo struct {
}

func init() {
	cmd.Register(&WorkMgrInfo{})
}

func (winfo *WorkMgrInfo) Id() cmd.CmdId {
	return CMD_ID_WORKMGR_INFO
}
func (winfo *WorkMgrInfo) Run(args *args.Args) error {
	work.Mgr.PrintPprof()
	return nil
}
func (winfo *WorkMgrInfo) Desc() string {
	return "workmanager info"
}
